<template>
	<view>
		<view class="box attention">
			<view class="title acea-row">
				<u-icon name="info-circle" color="#FE8802" size="20"></u-icon> <text
					style="padding-left: 10rpx;">{{detail.title}}</text>
			</view>
			<view class="cont">
				<u-parse :content="detail.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "zysx",
		data() {
			return {
				detail: ''
			};
		},
		created() {
			this.info()
		},

		methods: {
			async info() {
				const res = await this.$myRequest({
					url: '/api/index/getNoteOne',
					data: {
						openid: uni.getStorageSync('openid'),
					}
				})
				console.log(res.data.data.note)
				this.detail = res.data.data.note;
			},
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 100%;
		padding: 0 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin-bottom: 30rpx;
	}

	.attention .title {
		height: 100rpx;
		line-height: 100rpx;
	}

	.attention .cont {
		color: #E33434;
		font-size: 28rpx;
		padding-bottom: 30rpx;
	}
</style>
